<div q-view="myview">
    <div q-each="list">
        <div>
            index:<span q-text="{$index}+1"></span>
            name:<span q-text="{name}"></span>
            sex:<span q-text="{sex}"></span>
            <input q-click="mysplice" type="button" value="splice">
        </div>
    </div>

    <input q-click="mypush" type="button" value="push">
</div>
<script>
    qc.view("myview", function (vm, ve) {
        vm.list = [{name: "Andy", sex: "male"}, {name: "Lily", sex: "female"}];
        ve.mypush = function () {
            vm.listpush({name: "Lucy", sex: "female"})
        }
        ve.mysplice = function ($self, event, action) {
            vm.listsplice($self.$index,1);
            window.console&&window.console.log(this)
        }

    })
</script>